package org.example.shop_front_api.service;

import org.example.shop_front_api.entity.Area;
import org.example.shop_front_api.mapper.AreaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaService {
    @Autowired
    private AreaMapper areaMapper;

    public List<Area> listByParentId(Long parentId) {
        return areaMapper.listByParentId(parentId);
    }
}